﻿#include <stdio.h>

int main()
{
    char ch;
    scanf("%c", &ch);
    int j = 0;
    for (int i = 0; i <= ch - 'A'; i++)   // 共 (ch-'A'+1) 行
    {
        for (int k = ch - 'A'; k > 0; k--)
            printf(" ");
        for (int j = 0; j <= i; j++)
            printf("%c", 'A' + j);
        for (int z = j - 1; j > 0; j--)
            printf("%c", 'A' + j - z);
      
    }

    return 0;
}
